package com.csdj.t309.geamtest.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 田港
 * @since 2022-01-12
 */
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer typeId;

    private String email;

    private Integer age;

    private Date creationDate;

    private String modifyBy;

    private String password;

    private String headSculpture;

    /**
     * 头像
     */
    private String avatar;

    /**
     * 邀请码
     */
    private String inviteCode;

    /**
     * 积分
     */
    private Integer integrate;

    private String name;

    /**
     * 父级id
     */
    private Integer pid;

    /**
     * 分享id
     */
    private String sharedId;

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    /**
     * 签到天数
     */
    private Integer qiandao;
    @TableField(exist = false)
    private String token;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
    public Date getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(Date creationDate) {
        this.creationDate = creationDate;
    }
    public String getModifyBy() {
        return modifyBy;
    }

    public void setModifyBy(String modifyBy) {
        this.modifyBy = modifyBy;
    }
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    public String getHeadSculpture() {
        return headSculpture;
    }

    public void setHeadSculpture(String headSculpture) {
        this.headSculpture = headSculpture;
    }
    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }
    public String getInviteCode() {
        return inviteCode;
    }

    public void setInviteCode(String inviteCode) {
        this.inviteCode = inviteCode;
    }
    public Integer getIntegrate() {
        return integrate;
    }

    public void setIntegrate(Integer integrate) {
        this.integrate = integrate;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }
    public String getSharedId() {
        return sharedId;
    }

    public void setSharedId(String sharedId) {
        this.sharedId = sharedId;
    }
    public Integer getQiandao() {
        return qiandao;
    }

    public void setQiandao(Integer qiandao) {
        this.qiandao = qiandao;
    }

    @Override
    public String toString() {
        return "User{" +
            "id=" + id +
            ", typeId=" + typeId +
            ", email=" + email +
            ", age=" + age +
            ", creationDate=" + creationDate +
            ", modifyBy=" + modifyBy +
            ", password=" + password +
            ", headSculpture=" + headSculpture +
            ", avatar=" + avatar +
            ", inviteCode=" + inviteCode +
            ", integrate=" + integrate +
            ", name=" + name +
            ", pid=" + pid +
            ", sharedId=" + sharedId +
            ", qiandao=" + qiandao +
        "}";
    }
}
